﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LP580.CG;

public partial class Manage_User_UserUtils : System.Web.UI.Page
{
    private string act = Utils.RQ_str("act");
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (act)
        {
            case ("login"):
                DealLogin();
                break;
        }
    }

    private void DealLogin()
    {
        int id = Utils.RQ_int("id");
        clsUserAccount usr = new clsUserAccount(id);
        clsUserAccount.doUserLogin(usr);
        if (usr.MemberType == 1)
            Response.Redirect("~/User/UC1Welcome.aspx", true);
        else
            Response.Redirect("/User/UC2GiftOperate.aspx?act=add", true);
    }
}